import { createRouter, createWebHistory } from "vue-router";

export const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes:[
        {
            path:'/book',
            component:()=>import('@/views/book.vue')
        },
        {
            path:'/bookAdd',
            component:()=>import('@/views/bookAddOrEdit.vue')
        },
        {
            path: '/bookEdit/:id',
            component: () => import('@/views/bookAddOrEdit.vue'),
          },
    ]
})